﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Furion.CMS.Domain
{
    /// <summary>
    /// 内部异常记录
    /// </summary>
    public class InnerExceptionRecord
    {
        public InnerExceptionRecord()
        {
        }

        public InnerExceptionRecord(string message)
        {
            TrackId = Guid.NewGuid();
            Message = message;
        }

        public InnerExceptionRecord(Guid trackId, string message)
        {
            TrackId = trackId;
            Message = message;
        }

        /// <summary>
        /// 日志跟踪ID
        /// </summary>
        public Guid TrackId { get; private set; }
        /// <summary>
        /// 错误消息
        /// </summary>
        [MaxLength(200)]
        public string Message { get; private set; }
    }
}
